import string
import os
import time
import types
import socket
import cPickle
import hashlib
import random

import config

"""
    Copyright (C) 2009,2010  Jorge Alegre Vilches

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.    
"""

class Octopus(object):
	__User = ''
	__Password = ''
	__Environment = ''
	__Port = 9346
	def __init__(self, user=config.OctopusDict['user'], password=config.OctopusDict['password'], environment=config.OctopusDict['environment']):
		self.__User = user
		self.__Password = password
		self.__Environment = environment
	def getUser(self):
		return self.__User
	def getPassword(self):
		return self.__Password
	def getEnvironment(self):
		return self.__Environment
	def setUser(self, value):
		self.__User = value
	def setPassword(self, value):
		self.__Password = value
	def setEnvironment(self, value):
		self.__Environment = value
	def delUser(self):
		del self.__User
	def delPassword(self):
		del self.__Password
	def delEnvironment(self):
		del self.__Environment
	def getPort(self):
		return self.__Port
	def setPort(self, value):
		self.__Port = value
	def delPort(self):
		del self.__Port
	User = property(getUser, setUser, delUser, "User's Docstring")
	Password = property(getPassword, setPassword, delPassword, "Password's Docstring")
	Environment = property(getEnvironment, setEnvironment, delEnvironment, "Environment's Docstring")
	Port = property(getPort, setPort, delPort, "Port's Docstring")
